package com.ruoyi.web.controller.common;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.oss.AliYunOSSUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * AliYunOssController
 * 阿里云OSS模块接口
 *
 * @author HHKJ-SERVER-ZJ
 * @since 2023/10/8 9:18
 */
@RestController
@RequestMapping("/aliyun/oss")
public class AliYunOssController {

    /**
     * 阿里云Post参数获取
     */
    @PostMapping("/generate/post/params")
    public AjaxResult generatePostParam() {
        return AjaxResult.success(AliYunOSSUtils.generateOssPostParam());
    }
}
